package com.dingwen.treasure.base.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 　PageData: 分页数据对象
 * 　@author dingwen
 * 　@date 2022/8/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class PageVo<T> implements Serializable {
    private static final long serialVersionUID = 8862296739326979676L;

    /**
     * 页面大小
     */
    private Integer pageSize;


    /**
     * 当前页
     */
    private Integer pageNum;


    /**
     * 总页数
     */
    private Long totalNum;


    /**
     * 数据
     */
    private List<T> rows;

}
